//
//  DBAccess.h
//  fmdbDemo
//
//  Created by rp.wang on 2017/9/22.
//  Copyright © 2017年 rp.wang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "infoModel.h"
#import "DBHelper.h"

@interface DBAccess : NSObject

///单例模式
+ (DBAccess *)sharedInstance;
///插入数据
-(void)insertdatafortableName :(infoModel *)infomodeldata;
///新建数据库
-(void)OpenServe;
///建表
-(void)CreateNewtable;
///给表里面添加字段
-(void)addstringfortbale :(NSString *)TableName addSrting:(NSString *)AddString;
//查询表里的所有数据
-(NSArray *)readAllData;
///通过ID查询个人信息
-(NSString *)getmydepartmentStr :(NSString *)InquireStr;
//删除表
-(BOOL)deletetable;
//修改数据
-(BOOL)modifyupdateName:(NSString *)updataName newName:(NSString *)newName  userid:(NSString *)userid;
//查询指定行数据
-(void)getcellNumberData :(NSString *)cellNumber;
@end
